
//
//  collectViewCell.m
//  tangDynasty
//
//  Created by 洪闽程 on 2018/11/16.
//  Copyright © 2018年 洪闽程. All rights reserved.
//

#import "collectViewCell.h"
#import "dataModel.h"
#import <UIImageView+WebCache.h>
@interface collectViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *imageV;
@property (weak, nonatomic) IBOutlet UILabel *titlelbl;
@end
@implementation collectViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(dataModel *)model
{
    [self.imageV sd_setImageWithURL:[NSURL URLWithString:model.url]];
    self.titlelbl.text=model.name;
    
    
}

@end
